package com.css.dzj.dzjap.sys.user.form;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;

/**
 * 注册Form表单
 * @author liyuan
 */
@Data
public class RegisterForm {
    @NotBlank(message = "用户名不能为空")
    String userName;
    @NotBlank(message = "密码不能为空")
    String password;
    @NotBlank(message = "电话号码不能呢为空")
    @Length(min = 11, max = 11, message = "电话号码11位")
    String mobile;
    @Email(message = "要符合邮箱格式")
    String email;
}
